class HomeBean {
  int id;
  String activityName;
  String activityCode;
  int medalNumber;
  int isShow;
  String images;
  String activityRule;

  HomeBean(
      {this.id,
      this.activityName,
      this.activityCode,
      this.medalNumber,
      this.isShow,
      this.images,
      this.activityRule});

  HomeBean.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    activityName = json['activityName'];
    activityCode = json['activityCode'];
    medalNumber = json['medalNumber'];
    isShow = json['isShow'];
    images = json['images'];
    activityRule = json['activityRule'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['activityName'] = this.activityName;
    data['activityCode'] = this.activityCode;
    data['medalNumber'] = this.medalNumber;
    data['isShow'] = this.isShow;
    data['images'] = this.images;
    data['activityRule'] = this.activityRule;
    return data;
  }
}